package M_C;

public class MsiC {
	protected MalStang ms;
	protected MalDrept md;
	protected Barca b;
	
	public MsiC(int md_c,int md_m, int b_c, int b_m, int ms_c, int ms_m) {
		this.ms = new MalStang(ms_c, ms_m);
		this.md = new MalDrept(md_c, md_m);
		this.b = new Barca(b_c, b_m);
	}

	public void setMs(int c, int m) {
		this.ms.c = c;
		this.ms.m= m;
	}

	public int getMsC() {
		return ms.getC();
	}

	public int getMsM() {
		return ms.getM();
	}

	public int getMdC() {
		return md.getC();
	}
	public int getMdM() {
		return md.getM();
	}

	public void setMd(int c, int m) {
		this.md.c = c;
		this.md.m = m;
	}

	public int getBC() {
		return b.getC();
	}
	public int getBM() {
		return b.getM();
	}

	public void setB(int c, int m) {
		this.b.c = c;
		this.b.m = m;
	}
	
	public String toString(){
		return "Starea : mal stang ("+this.getMsC()+","+this.getMsM()+"),  barca ("+this.getBC()+","+this.getBM()+"), mal drept ("+this.getMdC()+","+this.getMdM()+").";
	}
	
	

}
